<link rel="stylesheet" href="<?=base_url()?>assets/css/wanwanui/jwanwan.css" type="text/css" />
<link rel="stylesheet" href="<?=base_url()?>assets/js/jqwidgets/styles/jqx.summer.css" type="text/css" />
<link rel="stylesheet" href="<?=base_url()?>assets/js/jqwidgets/styles/jqx.base.css" type="text/css" />
<script type="text/javascript" src="<?=base_url()?>assets/js/util/wjJquery.js"></script>

<script type="text/javascript">
	$(function() {
		$.post("<?=base_url()?>index.php/team/teamPhotowallDiv/<?=$rs['teamId']?>/5/1",{},function(data)	{
			$("#photowall").append(data);
		},"html");
		
		$("#optimistic").click(function() {
			$.ajax({
				type:"POST",
				url:"<?=base_url()?>index.php/team/optimistic",
				data:"teamId=<?=$rs['teamId']?>",
				success:function() {
					location.reload();
				}
			});
		});
		$("#care").click(function() {
		
			$.ajax({
				type:"POST",
				url:"<?=base_url()?>index.php/team/care",
				data:"teamId=<?=$rs['teamId']?>",
				success:function() {
					location.reload();
				}
			});
		});
		$("#applyToTeam").click(function() {
			$.ajax({
				type:"POST",
				url:"<?=base_url()?>index.php/team/applyJoinToTeam",
				data:"teamId=<?=$rs['teamId']?>",
				success:function() {
					alert("申请成功");
				}
			});
		});
		
	})
</script>
	
		<div class="content">
		<div class="tdzy_lf">
			<div class="tdzy_lfd1">
                <div class="tdzy_img"></div>
				<h3><?=$rs['teamName']?></h3>
				<p class="tdzy_p1"><a href="javascript:void(0);" id="care">+在意</a><strong>(<?=$rs['care']?>)</strong></p>
				<p class="tdzy_p1"><a href="javascript:void(0);" id="optimistic">+看好</a>(<?=$rs['optimistic']?>)</p>
				<p class="tdzy_p2"><input type="button" id="applyToTeam" class="tdzy_put" /></p>
			</div>
			
			<div class="bmlf_lf1">
				<ul>
					<li class="lf1_hover1"><a href="<?=base_url()?>index.php/team/teamYearbook/<?=$rs['teamId']?>" target="_blank"><strong>年鉴</strong></a></li>
					<li class="lf1_hover2"><a href="#"><strong>照片墙</strong></a></li>
					<li class="lf1_hover8"><a href="<?=base_url()?>index.php/team/listUsersByTeamId/<?=$rs['teamId']?>" target="_blank"><strong>团体成员</strong></a></li>
				</ul>
			</div><!-- end bmlf_lf1 -->
		</div><!-- end tdzy_lf -->
		<div class="tdzy_rg" >
		<div style='margin-right:30px;width:670px;' id='photowall'>
			
		 </div>
		</div><!-- end tdzy_rg -->
		
	</div><!-- end content -->
	
	<div class="footer">
		<p class="foot_p">Copyright © 2013 湾湾网. All Rights Reserved. 冀ICP备12021992号</p>
	</div>
</div><!-- end wrap -->
</body>
</html>
